
import type { RouteRecordRaw } from 'vue-router';


/**
 * 路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      hidden：        是否隐藏此路由
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * }
 */

/**
 * 静态路由（默认路由）
 * 无论什么用户都可以看到的 比如:首页
 */
export const staticRoutes: Array<RouteRecordRaw> = [
  {

    path: '/',
    name: 'Home',
    component: () => import('@/views/home/index.vue'),
    meta: {},
  },
  {

    path: "/cart",
    name: "Cart",
    component: () => import("@/views/cart/index.vue"),
    meta: {
      
    },
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: {},
  },
  {

    path: "/1topic",
    name: "Topic",
    component: () => import("@/views/topic/index.vue"),
    // meta: {

    // },

  
  },
  {
    path: '/category',
    name: 'Category',
    component: () => import('@/views/category/index.vue'),
    meta: {},
  },
  {

    path: '/detail', //产品详情
    name: 'Detail',
    component: () => import('@/views/detail/index.vue')
  },
  {
    path: "/Cart",
    name: "Cart",
    component: () => import("@/views/cart/index.vue"),
    meta: {

    },
  },


  {
    path: "/user",
    name: "User",
    component: () => import("@/views/user/index.vue"),
    meta: {

      
    },

  },
  {
    path: '/trade',
    name: 'Trade',
    component: () => import('@/views/trade/index.vue'),
    meta: {},
  },
  {
    path: '/pay',
    name: 'Pay',
    component: () => import('@/views/pay/index.vue'),
    meta: {},
  },
  {
    path: "/register",
    name: "Register",
    component: () => import("@/views/register/index.vue"),
    meta: {
      
    },
  },

  {
    path: "/item/list",
    name: "GoodsItemList",
    component: () => import("@/views/home/GoodsItem/index.vue"),
    meta: {
      
    },


    },

  {
    path: "/search",
    name: "Search",
    component: () => import("@/views/search/index.vue"),
    redirect: "/search/history",
    children: [
      {
        path: "history",
        name: "History",
        component: () => import("@/views/search/history/index.vue"),
      },
      {
        path: "classIficationlist",
        name: "ClassIficationlist",
        component: () => import("@/views/search/classIficationlist/index.vue"),
      },
    ]

  },
];
